<template>
  <div id="map-container" />
</template>

<script>
export default {
  name: 'Map',
  data() {
    return {
      zoom: 12,
      center: [121.583043, 29.861907],
      markers: [],
      windows: [],
      window: ''
    }
  },
  mounted() {

  },
  methods: {
    showDetailsMap() {
      alert(123)
    }
  }
}

</script>

<style lang="scss">
#map-container {
  height: 100%;
  width: 100%;
}
.amap-demo {
  height: 400px;
}

.windows-wrap {
  background: white;
  width: 300px;
  top: 12px;
  .windows-title {
    padding: 4px 10px;
    margin-bottom: 4px;
    border-bottom: 1px solid #ddd;
  }
  .windows-content {
    padding: 4px 10px;
    font-size: 14px;
    line-height: 25px;
  }
}
.provinces-name {
  width: 100px;
  overflow: hidden;
  /*display: inline-block;*/
  color: #000;
  font-weight: 600;
  font-size: 12px;
  /*<!--margin-top: -20px;-->*/
  position: absolute;
  top: 0px;
  img {
    width: 16px;
    height: 24px;
  }
  .marker-name {
    left: 18px;
    position: absolute;
    top: 8px;
  }
}
</style>
